package com.xja.shoppingmall.controller;

import com.xja.shoppingmall.service.SleuthTraceInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author CHENCHEN
 * @title
 * @createTime 2021-12-1222:34
 */
@Slf4j
@RestController
@RequestMapping("sleuth")
public class SleuthTraceInfoController {

    @Autowired
    private SleuthTraceInfoService sleuthTraceInfoService;

    @RequestMapping("")
    public void logCurrentTraceInfo(){
        sleuthTraceInfoService.logCurrentTraceInfo();
    }
}
